@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />

@endsection

@section('html-body')
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">反馈列表</a>
        </div>

        @include("admin.common.banner-header")

        <div class="table-box">

            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                   <th>反馈内容</th>
                    <th>反馈图片</th>
                    <th>反馈用户联系方式</th>
                    <th>描述</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @if(count($feedBacks) > 0)
                    @foreach($feedBacks as $feedBack)
                        <tr id="banner_{{$feedBack->id}}">
                            <td>{{$feedBack->id}}</td>
                            <td style="overflow: visible; white-space: normal; text-align:left; text-indent:24px;" >{{$feedBack->content}}</td>
                            <td class="account-td" style="width: 5%;">
                        <span class="photo" style="border-radius: 100%;display:initial">
                            @if($feedBack->img_id !== 0)
                                <a href="javascript:void(0);" class="openimg" data-key="{{$feedBack->img_id}}"><img src="{{$feedBack->img_url}}" alt="{{$feedBack->img_url}}"></a>
                            @else
                                <img src="{{url('images/default-avatar.png')}}" alt="">
                            @endif
                        </span>
                            </td>
                            <td>{{$feedBack->phone}}</td>
                            <td>{{$feedBack->desc}}</td>
                            <td></span> <a href="javascript:void(0);" class="del" data-id="{{$feedBack->id}}">删除 </a></td>
                        </tr>
                    @endforeach
                @endif
                </tbody>
            </table>
        </div>
        <div class="pagelist" style="text-align: center;">
            <?php echo $feedBacks->render(); ?>
        </div>
    </div>
@endsection